package com.treeHole.treeHoleServer.service;


import com.treeHole.treeHoleServer.pojo.RequestDataDTO.PostDeleteCommentDTO;
import com.treeHole.treeHoleServer.pojo.ResultDataDTO.ResultCommentDTO;

import java.util.List;

/**
 * 处理用户与评论交互的业务类
 */
public interface CommentService {
    int userLikeComment(Integer userId, Integer commentId);
    int userUnlikeComment(Integer userId, Integer commentId);

    ResultCommentDTO userCreateComment(PostDeleteCommentDTO postDeleteCommentDTO);
    int userDeleteComment(PostDeleteCommentDTO postDeleteCommentDTO);

    List<ResultCommentDTO> getUserComments(Integer userId, Integer page);
}
